package com.martian.mapper;

import com.martian.pojo.dto.MovieQuestionsDto;
import com.martian.pojo.form.NewMovieQuestionFrom;
import com.martian.pojo.form.UserAnswerForm;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.net.Inet4Address;
import java.util.List;

@Mapper
@Repository
public interface QuestionMapper {
    List<MovieQuestionsDto> getMovieQuestions(Integer movieId,Integer num);

    Integer getRatingQualification(Integer userId, Integer movieId);

    void insertMovieQuestions(NewMovieQuestionFrom newMovieQuestionFrom);

    void insertUserAnswer(Integer userId, UserAnswerForm userAnswerForm);

    void updateUserAnswer(UserAnswerForm userAnswerForm);

    Integer selectQuestions();
}
